package com.caltco.cargo.ops.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.caltco.cargo.ops.modules.sys.entity.TaskFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface TaskFileService extends IService<TaskFile> {
    String storeFile(MultipartFile file, String path) throws IOException;
    Map<String, Object> batchUploadFile(MultipartFile[] files, Long taskId);
    List<TaskFile> getAllFiles(Long taskId);

    Boolean deleteFiles(List<String> ids);
//    Boolean batchDownloadFile(@RequestBody List<String> files, HttpServletRequest request, HttpServletResponse response);
}
